package com.alibaba.controller;

import com.alibaba.pojo.CouponBean;
import com.alibaba.service.CouponService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("coupon")
public class CouponController {

    @Autowired
    CouponService couponService;

    @GetMapping("ResultPageVo")
    public IPage<CouponBean> ResultPageVo(){
        return couponService.ResultPageVo();
    }
}
